const shopsDao = require("../dao/shopsDao");

// 查询所有服务
module.exports.findAll = async function (searchObj, page) {
  return await shopsDao.findAll(searchObj, page);
};

// 增加服务
module.exports.insert = async function (shops) {
  return await shopsDao.insert(shops);
};

//通过id修改服务
module.exports.upState = async function (id, status) {
  return await shopsDao.upState(id, status);
};

//通过id删除服务
module.exports.delete = async function (id) {
  return await shopsDao.delete(id);
};
//通过 id 修改状态
module.exports.update = async function (id, obj) {
  return await shopsDao.update(id, obj);
};
